﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>
            json2.asp - AXE Documentation
        </title>
        <link rel="stylesheet" type="text/css" href="../../../../../styles/main.css" />
        <script language="JavaScript" src="../../../../../javascript/main.js" type="text/javascript">
</script>
        <script language="JavaScript" src="../../../../../javascript/searchdata.js" type="text/javascript">
</script>
        <link rel="icon" type="image/png" href="/lib/axe/assets/img/docs-icon.png" />
        <link href="http://fonts.googleapis.com/css?family=Droid+Sans" rel="stylesheet" type="text/css" />
    </head>
    <body class="ContentPage" onload="NDOnLoad()">
        <script language="JavaScript" type="text/javascript">
//<![CDATA[
        <!--
        if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// -->
        //]]>
        </script>
        <div id="Content">
            <div class="CFile">
                <div class="CTopic" id="MainTopic">
                    <h1 class="CTitle">
                        <a id="json2.asp"></a>json2.asp
                    </h1>
                    <div class="CBody">
                        <p>
                            AXE(ASP Xtreme Evolution) JSON parser based on Douglas Crockford json2.js.
                        </p>
                        <p>
                            This class is the result of Classic ASP JSON topic revisited by Fabio Zendhi Nagao (nagaozen).&nbsp; JSON2.ASP is a better option over JSON.ASP because it embraces the AXE philosophy of real collaboration over the languages.&nbsp; It works under the original json parser, so this class is strict in the standard rules, it also brings more of the Javascript json feeling to other ASP languages (eg. no more oJson.getElement(“foo”) stuff, just oJson.foo and you get it).
                        </p>
                        <h4 class="CHeading">
                            License
                        </h4>
                        <p>
                            This file is part of ASP Xtreme Evolution.&nbsp; Copyright © 2007-2012 Fabio Zendhi Nagao
                        </p>
                        <p>
                            ASP Xtreme Evolution is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
                        </p>
                        <p>
                            ASP Xtreme Evolution is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&nbsp; See the GNU Lesser General Public License for more details.
                        </p>
                        <p>
                            You should have received a copy of the GNU Lesser General Public License along with ASP Xtreme Evolution.&nbsp; If not, see <a href="http://www.gnu.org/licenses/" class="LURL" target="_top">http://www.gnu.org/licenses/</a>.
                        </p>
                        <div class="Summary">
                            <div class="STitle">
                                Summary
                            </div>
                            <div class="SBorder">
                                <table border="0" cellspacing="0" cellpadding="0" class="STable">
                                    <tr class="SMain">
                                        <td class="SEntry">
                                            <a href="#json2.asp">json2.asp</a>
                                        </td>
                                        <td class="SDescription">
                                            AXE(ASP Xtreme Evolution) JSON parser based on Douglas Crockford json2.js.
                                        </td>
                                    </tr>
                                    <tr class="SClass">
                                        <td class="SEntry">
                                            <a href="#JSON">JSON</a>
                                        </td>
                                        <td class="SDescription">
                                            JSON (Javascript Object Notation) is a lightweight data-interchange format.
                                        </td>
                                    </tr>
                                    <tr class="SGroup SIndent1">
                                        <td class="SEntry">
                                            <a href="#JSON.Functions">Functions</a>
                                        </td>
                                        <td class="SDescription"></td>
                                    </tr>
                                    <tr class="SFunction SIndent2 SMarked">
                                        <td class="SEntry">
                                            <a href="#JSON.parse">parse</a>
                                        </td>
                                        <td class="SDescription">
                                            This method parses a JSON text to produce an object or array.
                                        </td>
                                    </tr>
                                    <tr class="SFunction SIndent2">
                                        <td class="SEntry">
                                            <a href="#JSON.stringify">stringify</a>
                                        </td>
                                        <td class="SDescription">
                                            This method produces a JSON text from a Javascript value.
                                        </td>
                                    </tr>
                                    <tr class="SFunction SIndent2 SMarked">
                                        <td class="SEntry">
                                            <a href="#JSON.toXML">toXML</a>
                                        </td>
                                        <td class="SDescription">
                                            This method produces a XML text from a Javascript value.
                                        </td>
                                    </tr>
                                    <tr class="SFunction SIndent2">
                                        <td class="SEntry">
                                            <a href="#JSON.minify">minify</a>
                                        </td>
                                        <td class="SDescription">
                                            This method can be used as a helper to enable comments in json-like configuration files.
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="CClass">
                <div class="CTopic">
                    <h2 class="CTitle">
                        <a id="JSON"></a>JSON
                    </h2>
                    <div class="CBody">
                        <p>
                            JSON (Javascript Object Notation) is a lightweight data-interchange format.&nbsp; It is easy for humans to read and write.&nbsp; It is easy for machines to parse and generate.&nbsp; It is based on a subset of the Javascript Programming Language, Standard ECMA-262 3rd Edition - December 1999.&nbsp; JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, Javascript, Perl, Python, and many others.&nbsp; These properties make JSON an ideal data-interchange language.
                        </p>
                        <h4 class="CHeading">
                            Notes
                        </h4>
                        <ul>
                            <li>JSON parse/stringify from the Douglas Crockford json2.js <a href="https://raw.githubusercontent.com/douglascrockford/JSON-js/master/json2.js" class="LURL" target="_top">https://raw.githubusercontent.com<wbr />/douglascrockford<wbr />/JSON-js<wbr />/master<wbr />/json2.js</a>.
                            </li>
                            <li>JSON.toXML is based on the Prof.&nbsp; Stefan Gössner “Converting Between XML and JSON” pragmatic approach <a href="http://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html" class="LURL" target="_top">http://www.xml.com<wbr />/pub<wbr />/a<wbr />/2006<wbr />/05<wbr />/31<wbr />/converting-between-xml-and-json.html</a>.
                            </li>
                            <li>JSON.minify is based on <a href="https://github.com/getify/JSON.minify/blob/master/minify.json.js" class="LURL" target="_top">https://github.com<wbr />/getify<wbr />/JSON.minify<wbr />/blob<wbr />/master<wbr />/minify.json.js</a> and exists because of <a href="https://plus.google.com/+DouglasCrockfordEsq/posts/RK8qyGVaGSr" class="LURL" target="_top">https://plus.google.com<wbr />/+DouglasCrockfordEsq<wbr />/posts<wbr />/RK8qyGVaGSr</a>.
                            </li>
                        </ul>
                        <h4 class="CHeading">
                            About
                        </h4>
                        <ul>
                            <li>Written by Fabio Zendhi Nagao <a href="http://zend.lojcomm.com.br/" class="LURL" target="_top">http://zend.lojcomm.com.br/</a> @ August 2010
                            </li>
                        </ul>
                        <div class="Summary">
                            <div class="STitle">
                                Summary
                            </div>
                            <div class="SBorder">
                                <table border="0" cellspacing="0" cellpadding="0" class="STable">
                                    <tr class="SGroup">
                                        <td class="SEntry">
                                            <a href="#JSON.Functions">Functions</a>
                                        </td>
                                        <td class="SDescription"></td>
                                    </tr>
                                    <tr class="SFunction SIndent1 SMarked">
                                        <td class="SEntry">
                                            <a href="#JSON.parse">parse</a>
                                        </td>
                                        <td class="SDescription">
                                            This method parses a JSON text to produce an object or array.
                                        </td>
                                    </tr>
                                    <tr class="SFunction SIndent1">
                                        <td class="SEntry">
                                            <a href="#JSON.stringify">stringify</a>
                                        </td>
                                        <td class="SDescription">
                                            This method produces a JSON text from a Javascript value.
                                        </td>
                                    </tr>
                                    <tr class="SFunction SIndent1 SMarked">
                                        <td class="SEntry">
                                            <a href="#JSON.toXML">toXML</a>
                                        </td>
                                        <td class="SDescription">
                                            This method produces a XML text from a Javascript value.
                                        </td>
                                    </tr>
                                    <tr class="SFunction SIndent1">
                                        <td class="SEntry">
                                            <a href="#JSON.minify">minify</a>
                                        </td>
                                        <td class="SDescription">
                                            This method can be used as a helper to enable comments in json-like configuration files.
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="CGroup">
                <div class="CTopic">
                    <h3 class="CTitle">
                        <a id="JSON.Functions"></a>Functions
                    </h3>
                </div>
            </div>
            <div class="CFunction">
                <div class="CTopic">
                    <h3 class="CTitle">
                        <a id="JSON.parse"></a>parse
                    </h3>
                    <div class="CBody">
                        <p>
                            This method parses a JSON text to produce an object or array.&nbsp; It can throw a SyntaxError exception.
                        </p>
                        <h4 class="CHeading">
                            Parameters
                        </h4>
                        <table border="0" cellspacing="0" cellpadding="0" class="CDescriptionList">
                            <tr>
                                <td class="CDLEntry">
                                    (string)
                                </td>
                                <td class="CDLDescription">
                                    Valid JSON text.
                                </td>
                            </tr>
                        </table>
                        <h4 class="CHeading">
                            Returns
                        </h4>
                        <table border="0" cellspacing="0" cellpadding="0" class="CDescriptionList">
                            <tr>
                                <td class="CDLEntry">
                                    (mixed)
                                </td>
                                <td class="CDLDescription">
                                    a Javascript value, usually an object or array.
                                </td>
                            </tr>
                        </table>
                        <h4 class="CHeading">
                            Example
                        </h4>
                        <blockquote>
                            <div class="code">
                                <pre class="asp">
<span class="kw1">dim</span> Info <span class="sy0">:</span> <span class="kw1">set</span> Info <span class="sy0">=</span> JSON.<span class="me1">parse</span><span class="br0">(</span>join<span class="br0">(</span><span class="kw3">array</span><span class="br0">(</span> _
    <span class="st0">"{"</span>, _
    <span class="st0">"  "</span><span class="st0">"firstname"</span><span class="st0">": "</span><span class="st0">"Fabio"</span><span class="st0">","</span>, _
    <span class="st0">"  "</span><span class="st0">"lastname"</span><span class="st0">": "</span><span class="st0">"長尾"</span><span class="st0">","</span>, _
    <span class="st0">"  "</span><span class="st0">"alive"</span><span class="st0">": true,"</span>, _
    <span class="st0">"  "</span><span class="st0">"age"</span><span class="st0">": 27,"</span>, _
    <span class="st0">"  "</span><span class="st0">"nickname"</span><span class="st0">": "</span><span class="st0">"nagaozen"</span><span class="st0">","</span>, _
    <span class="st0">"  "</span><span class="st0">"fruits"</span><span class="st0">": ["</span>, _
    <span class="st0">"    "</span><span class="st0">"banana"</span><span class="st0">","</span>, _
    <span class="st0">"    "</span><span class="st0">"orange"</span><span class="st0">","</span>, _
    <span class="st0">"    "</span><span class="st0">"apple"</span><span class="st0">","</span>, _
    <span class="st0">"    "</span><span class="st0">"papaya"</span><span class="st0">","</span>, _
    <span class="st0">"    "</span><span class="st0">"pineapple"</span><span class="st0">""</span>, _
    <span class="st0">"  ],"</span>, _
    <span class="st0">"  "</span><span class="st0">"complex"</span><span class="st0">": {"</span>, _
    <span class="st0">"    "</span><span class="st0">"real"</span><span class="st0">": 1,"</span>, _
    <span class="st0">"    "</span><span class="st0">"imaginary"</span><span class="st0">": 2"</span>, _
    <span class="st0">"  }"</span>, _
    <span class="st0">"}"</span> _
<span class="br0">)</span><span class="br0">)</span><span class="br0">)</span>
 
<span class="kw1">Response</span>.<span class="kw3">write</span><span class="br0">(</span>Info.<span class="me1">firstname</span> <span class="sy0">&amp;</span> vbNewline<span class="br0">)</span> <span class="co1">' prints Fabio</span>
<span class="kw1">Response</span>.<span class="kw3">write</span><span class="br0">(</span>Info.<span class="me1">alive</span> <span class="sy0">&amp;</span> vbNewline<span class="br0">)</span> <span class="co1">' prints True</span>
<span class="kw1">Response</span>.<span class="kw3">write</span><span class="br0">(</span>Info.<span class="me1">age</span> <span class="sy0">&amp;</span> vbNewline<span class="br0">)</span> <span class="co1">' prints 27</span>
<span class="kw1">Response</span>.<span class="kw3">write</span><span class="br0">(</span>Info.<span class="me1">fruits</span>.<span class="kw1">get</span><span class="br0">(</span><span class="nu0">0</span><span class="br0">)</span> <span class="sy0">&amp;</span> vbNewline<span class="br0">)</span> <span class="co1">' prints banana</span>
<span class="kw1">Response</span>.<span class="kw3">write</span><span class="br0">(</span>Info.<span class="me1">fruits</span>.<span class="kw1">get</span><span class="br0">(</span><span class="nu0">1</span><span class="br0">)</span> <span class="sy0">&amp;</span> vbNewline<span class="br0">)</span> <span class="co1">' prints orange</span>
<span class="kw1">Response</span>.<span class="kw3">write</span><span class="br0">(</span>Info.<span class="me1">complex</span>.<span class="me1">real</span> <span class="sy0">&amp;</span> vbNewline<span class="br0">)</span> <span class="co1">' prints 1</span>
<span class="kw1">Response</span>.<span class="kw3">write</span><span class="br0">(</span>Info.<span class="me1">complex</span>.<span class="me1">imaginary</span> <span class="sy0">&amp;</span> vbNewline<span class="br0">)</span> <span class="co1">' prints 2</span>
 
<span class="co1">' You can also enumerate object properties ...</span>
 
<span class="kw1">dim</span> key <span class="sy0">:</span> <span class="kw1">for</span> <span class="kw1">each</span> key <span class="kw1">in</span> Info.<span class="me1">keys</span><span class="br0">(</span><span class="br0">)</span>
    <span class="kw1">Response</span>.<span class="kw3">write</span><span class="br0">(</span> key <span class="sy0">&amp;</span> vbNewline <span class="br0">)</span>
<span class="kw1">next</span>
 
<span class="co1">' which prints:</span>
 
<span class="co1">' firstname</span>
<span class="co1">' lastname</span>
<span class="co1">' alive</span>
<span class="co1">' age</span>
<span class="co1">' nickname</span>
<span class="co1">' fruits</span>
<span class="co1">' complex</span>
 
<span class="kw1">set</span> Info <span class="sy0">=</span> <span class="kw2">nothing</span>
</pre>
                            </div>
                        </blockquote>
                    </div>
                </div>
            </div>
            <div class="CFunction">
                <div class="CTopic">
                    <h3 class="CTitle">
                        <a id="JSON.stringify"></a>stringify
                    </h3>
                    <div class="CBody">
                        <p>
                            This method produces a JSON text from a Javascript value.
                        </p>
                        <h4 class="CHeading">
                            Parameters
                        </h4>
                        <table border="0" cellspacing="0" cellpadding="0" class="CDescriptionList">
                            <tr>
                                <td class="CDLEntry">
                                    (mixed)
                                </td>
                                <td class="CDLDescription">
                                    any Javascript value, usually an object or array.
                                </td>
                            </tr>
                            <tr>
                                <td class="CDLEntry">
                                    (mixed)
                                </td>
                                <td class="CDLDescription">
                                    an optional parameter that determines how object values are stringified for objects.&nbsp; It can be a function or an array of strings.
                                </td>
                            </tr>
                            <tr>
                                <td class="CDLEntry">
                                    (mixed)
                                </td>
                                <td class="CDLDescription">
                                    an optional parameter that specifies the indentation of nested structures.&nbsp; If it is omitted, the text will be packed without extra whitespace.&nbsp; If it is a number, it will specify the number of spaces to indent at each level.&nbsp; If it is a string (such as ‘\t’ or ‘&amp;nbsp;’), it contains the characters used to indent at each level.
                                </td>
                            </tr>
                        </table>
                        <h4 class="CHeading">
                            Returns
                        </h4>
                        <table border="0" cellspacing="0" cellpadding="0" class="CDescriptionList">
                            <tr>
                                <td class="CDLEntry">
                                    (string)
                                </td>
                                <td class="CDLDescription">
                                    a string that contains the serialized JSON text.
                                </td>
                            </tr>
                        </table>
                        <h4 class="CHeading">
                            Example
                        </h4>
                        <blockquote>
                            <div class="code">
                                <pre class="asp">
<span class="kw1">dim</span> Info <span class="sy0">:</span> <span class="kw1">set</span> Info <span class="sy0">=</span> JSON.<span class="me1">parse</span><span class="br0">(</span><span class="st0">"{"</span><span class="st0">"firstname"</span><span class="st0">":"</span><span class="st0">"Fabio"</span><span class="st0">", "</span><span class="st0">"lastname"</span><span class="st0">":"</span><span class="st0">"長尾"</span><span class="st0">"}"</span><span class="br0">)</span>
Info.<span class="kw1">set</span> <span class="st0">"alive"</span>, <span class="kw2">true</span>
Info.<span class="kw1">set</span> <span class="st0">"age"</span>, <span class="nu0">27</span>
Info.<span class="kw1">set</span> <span class="st0">"nickname"</span>, <span class="st0">"nagaozen"</span>
Info.<span class="kw1">set</span> <span class="st0">"fruits"</span>, <span class="kw3">array</span><span class="br0">(</span><span class="st0">"banana"</span>,<span class="st0">"orange"</span>,<span class="st0">"apple"</span>,<span class="st0">"papaya"</span>,<span class="st0">"pineapple"</span><span class="br0">)</span>
Info.<span class="kw1">set</span> <span class="st0">"complex"</span>, JSON.<span class="me1">parse</span><span class="br0">(</span><span class="st0">"{"</span><span class="st0">"real"</span><span class="st0">":1, "</span><span class="st0">"imaginary"</span><span class="st0">":1}"</span><span class="br0">)</span>
 
<span class="kw1">Response</span>.<span class="kw3">write</span><span class="br0">(</span> JSON.<span class="me1">stringify</span><span class="br0">(</span>Info, <span class="kw2">null</span>, <span class="nu0">2</span><span class="br0">)</span> <span class="sy0">&amp;</span> vbNewline <span class="br0">)</span> <span class="co1">' prints the text below:</span>
<span class="co1">'{</span>
<span class="co1">'  "firstname": "Fabio",</span>
<span class="co1">'  "lastname": "長尾",</span>
<span class="co1">'  "alive": true,</span>
<span class="co1">'  "age": 27,</span>
<span class="co1">'  "nickname": "nagaozen",</span>
<span class="co1">'  "fruits": [</span>
<span class="co1">'    "banana",</span>
<span class="co1">'    "orange",</span>
<span class="co1">'    "apple",</span>
<span class="co1">'    "papaya",</span>
<span class="co1">'    "pineapple"</span>
<span class="co1">'  ],</span>
<span class="co1">'  "complex": {</span>
<span class="co1">'    "real": 1,</span>
<span class="co1">'    "imaginary": 1</span>
<span class="co1">'  }</span>
<span class="co1">'}</span>
 
<span class="kw1">set</span> Info <span class="sy0">=</span> <span class="kw2">nothing</span>
</pre>
                            </div>
                        </blockquote>
                    </div>
                </div>
            </div>
            <div class="CFunction">
                <div class="CTopic">
                    <h3 class="CTitle">
                        <a id="JSON.toXML"></a>toXML
                    </h3>
                    <div class="CBody">
                        <p>
                            This method produces a XML text from a Javascript value.
                        </p>
                        <h4 class="CHeading">
                            Parameters
                        </h4>
                        <table border="0" cellspacing="0" cellpadding="0" class="CDescriptionList">
                            <tr>
                                <td class="CDLEntry">
                                    (mixed)
                                </td>
                                <td class="CDLDescription">
                                    any Javascript value, usually an object or array.
                                </td>
                            </tr>
                            <tr>
                                <td class="CDLEntry">
                                    (string)
                                </td>
                                <td class="CDLDescription">
                                    an optional parameter that determines what tag should be used as a container for the output.&nbsp; Defaults to none.
                                </td>
                            </tr>
                        </table>
                        <h4 class="CHeading">
                            Returns
                        </h4>
                        <table border="0" cellspacing="0" cellpadding="0" class="CDescriptionList">
                            <tr>
                                <td class="CDLEntry">
                                    (string)
                                </td>
                                <td class="CDLDescription">
                                    a string that contains the serialized XML text.
                                </td>
                            </tr>
                        </table>
                        <h4 class="CHeading">
                            Example
                        </h4>
                        <blockquote>
                            <div class="code">
                                <pre class="asp">
<span class="kw1">dim</span> Info <span class="sy0">:</span> <span class="kw1">set</span> Info <span class="sy0">=</span> JSON.<span class="me1">parse</span><span class="br0">(</span><span class="st0">"{"</span><span class="st0">"firstname"</span><span class="st0">":"</span><span class="st0">"Fabio"</span><span class="st0">", "</span><span class="st0">"lastname"</span><span class="st0">":"</span><span class="st0">"長尾"</span><span class="st0">"}"</span><span class="br0">)</span>
Info.<span class="kw1">set</span> <span class="st0">"alive"</span>, <span class="kw2">true</span>
Info.<span class="kw1">set</span> <span class="st0">"age"</span>, <span class="nu0">27</span>
Info.<span class="kw1">set</span> <span class="st0">"nickname"</span>, <span class="st0">"nagaozen"</span>
Info.<span class="kw1">set</span> <span class="st0">"fruits"</span>, <span class="kw3">array</span><span class="br0">(</span><span class="st0">"banana"</span>,<span class="st0">"orange"</span>,<span class="st0">"apple"</span>,<span class="st0">"papaya"</span>,<span class="st0">"pineapple"</span><span class="br0">)</span>
Info.<span class="kw1">set</span> <span class="st0">"complex"</span>, JSON.<span class="me1">parse</span><span class="br0">(</span><span class="st0">"{"</span><span class="st0">"real"</span><span class="st0">":1, "</span><span class="st0">"imaginary"</span><span class="st0">":1}"</span><span class="br0">)</span>
 
<span class="kw1">Response</span>.<span class="kw3">write</span><span class="br0">(</span> JSON.<span class="me1">toXML</span><span class="br0">(</span>Info<span class="br0">)</span> <span class="sy0">&amp;</span> vbNewline <span class="br0">)</span> <span class="co1">' prints the text below:</span>
<span class="co1">'&lt;firstname&gt;Fabio&lt;/firstname&gt;</span>
<span class="co1">'&lt;lastname&gt;長尾&lt;/lastname&gt;</span>
<span class="co1">'&lt;alive&gt;true&lt;/alive&gt;</span>
<span class="co1">'&lt;age&gt;27&lt;/age&gt;</span>
<span class="co1">'&lt;nickname&gt;nagaozen&lt;/nickname&gt;</span>
<span class="co1">'&lt;fruits&gt;banana&lt;/fruits&gt;</span>
<span class="co1">'&lt;fruits&gt;orange&lt;/fruits&gt;</span>
<span class="co1">'&lt;fruits&gt;apple&lt;/fruits&gt;</span>
<span class="co1">'&lt;fruits&gt;papaya&lt;/fruits&gt;</span>
<span class="co1">'&lt;fruits&gt;pineapple&lt;/fruits&gt;</span>
<span class="co1">'&lt;complex&gt;</span>
<span class="co1">'    &lt;real&gt;1&lt;/real&gt;</span>
<span class="co1">'    &lt;imaginary&gt;1&lt;/imaginary&gt;</span>
<span class="co1">'&lt;/complex&gt;</span>
 
<span class="kw1">set</span> Info <span class="sy0">=</span> <span class="kw2">nothing</span>
</pre>
                            </div>
                        </blockquote>
                    </div>
                </div>
            </div>
            <div class="CFunction">
                <div class="CTopic">
                    <h3 class="CTitle">
                        <a id="JSON.minify"></a>minify
                    </h3>
                    <div class="CBody">
                        <p>
                            This method can be used as a helper to enable comments in json-like configuration files.&nbsp; According to Douglas Crockford, using comments are fine if you pipe the code before handing it to your JSON parser.&nbsp; See <a href="https://plus.google.com/118095276221607585885/posts/RK8qyGVaGSr" class="LURL" target="_top">https://plus.google.com<wbr />/118095276221607585885<wbr />/posts<wbr />/RK8qyGVaGSr</a>
                        </p>
                        <h4 class="CHeading">
                            Parameters
                        </h4>
                        <table border="0" cellspacing="0" cellpadding="0" class="CDescriptionList">
                            <tr>
                                <td class="CDLEntry">
                                    (string)
                                </td>
                                <td class="CDLDescription">
                                    a json-like configuration string
                                </td>
                            </tr>
                        </table>
                        <h4 class="CHeading">
                            Returns
                        </h4>
                        <table border="0" cellspacing="0" cellpadding="0" class="CDescriptionList">
                            <tr>
                                <td class="CDLEntry">
                                    (json)
                                </td>
                                <td class="CDLDescription">
                                    valid minified json
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div id="Footer">
            Documentation by <a href="http://zend.lojcomm.com.br/">Fabio Zendhi Nagao</a>&nbsp; ·&nbsp; Generated by <a href="http://www.naturaldocs.org">Natural Docs</a>, <a href="http://qbnz.com/highlighter/">GeSHi</a>, <a href="http://tidy.sourceforge.net/">Tidy</a> and <a href="http://mootools.net/">MooTools</a>
        </div>
        <div id="Menu">
            <div class="MTitle">
                AXE Documentation
            </div>
            <div class="MEntry">
                <div class="MGroup">
                    <a href="javascript:ToggleMenu('MGroupContent1')">Framework</a>
                    <div class="MGroupContent" id="MGroupContent1">
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../../base-asp.html">ASP Extensions</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../../base-math-asp.html">ASP Math Extensions</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../customevent-asp.html">customevent.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../interface-asp.html">interface.<wbr />class.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../kernel-asp.html">kernel.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../unittest-asp.html">unittest.asp</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="MEntry">
                <div class="MGroup">
                    <a href="javascript:ToggleMenu('MGroupContent2')">Feeds</a>
                    <div class="MGroupContent" id="MGroupContent2">
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Feeds/atom-asp.html">atom.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Feeds/rss-asp.html">rss.asp</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="MEntry">
                <div class="MGroup">
                    <a href="javascript:ToggleMenu('MGroupContent3')">Parsers</a>
                    <div class="MGroupContent" id="MGroupContent3">
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="csv-asp.html">csv.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="gfm-asp.html">gfm.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="handlebars-asp.html">handlebars.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile" id="MSelected">
                                json2.asp
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="jsonschema-asp.html">jsonschema.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="markdown-asp.html">markdown.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="mustache-asp.html">mustache.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="orderly-asp.html">orderly.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="textile-asp.html">textile.asp</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="MEntry">
                <div class="MGroup">
                    <a href="javascript:ToggleMenu('MGroupContent4')">Security</a>
                    <div class="MGroupContent" id="MGroupContent4">
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Security/md5-asp.html">md5.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Security/rijndael-asp.html">rijndael.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Security/sha256-asp.html">sha256.asp</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="MEntry">
                <div class="MGroup">
                    <a href="javascript:ToggleMenu('MGroupContent5')">Services</a>
                    <div class="MGroupContent" id="MGroupContent5">
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Services/akismet-asp.html">akismet.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Services/recaptcha-asp.html">recaptcha.asp</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="MEntry">
                <div class="MGroup">
                    <a href="javascript:ToggleMenu('MGroupContent12')">Utilities</a>
                    <div class="MGroupContent" id="MGroupContent12">
                        <div class="MEntry">
                            <div class="MGroup">
                                <a href="javascript:ToggleMenu('MGroupContent6')">Acl</a>
                                <div class="MGroupContent" id="MGroupContent6">
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/Acl/interface-asp.html">interface.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/Acl/Medias/json-asp.html">json.asp</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MGroup">
                                <a href="javascript:ToggleMenu('MGroupContent7')">Auth</a>
                                <div class="MGroupContent" id="MGroupContent7">
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/Auth/interface-asp.html">interface.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/Auth/Adapters/mssql-asp.html">mssql.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/Auth/Adapters/mssql-sql.html">mssql.sql</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MGroup">
                                <a href="javascript:ToggleMenu('MGroupContent8')">Email</a>
                                <div class="MGroupContent" id="MGroupContent8">
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/Email/Adapters/cdo-asp.html">cdo.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/Email/interface-asp.html">interface.asp</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MGroup">
                                <a href="javascript:ToggleMenu('MGroupContent9')">Logger</a>
                                <div class="MGroupContent" id="MGroupContent9">
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/Logger/Adapters/firephp-asp.html">firephp.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/Logger/Adapters/response-asp.html">response.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/Logger/Adapters/text-asp.html">text.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/Logger/interface-asp.html">interface.asp</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MGroup">
                                <a href="javascript:ToggleMenu('MGroupContent10')">Translator</a>
                                <div class="MGroupContent" id="MGroupContent10">
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/Translator/interface-asp.html">interface.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/Translator/Medias/json-asp.html">json.asp</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MGroup">
                                <a href="javascript:ToggleMenu('MGroupContent11')">XSession</a>
                                <div class="MGroupContent" id="MGroupContent11">
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/XSession/interface-asp.html">interface.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/XSession/Medias/json-asp.html">json.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/XSession/Medias/mssql-asp.html">mssql.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../Utilities/XSession/Medias/mssql-sql.html">mssql.sql</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/acl-asp.html">acl.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/auth-asp.html">auth.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/base64-asp.html">base64.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/color-asp.html">color.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/email-asp.html">email.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/es5shim-asp.html">es5shim.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/image-asp.html">image.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/list-asp.html">list.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/logger-asp.html">logger.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/paginator-asp.html">paginator.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/stringbuilder-asp.html">stringbuilder.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/translator-asp.html">translator.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/upload-asp.html">upload.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/xregexp-asp.html">xregexp.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/xsession-asp.html">xsession.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/xstring-asp.html">xstring.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../Utilities/zip-asp.html">zip.asp</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="MEntry">
                <div class="MGroup">
                    <a href="javascript:ToggleMenu('MGroupContent13')">Templates</a>
                    <div class="MGroupContent" id="MGroupContent13">
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../../templates/adapter-asp.html">${1:<wbr />name}</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../../templates/controller-asp.html">${1:<wbr />name}.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../../templates/model-asp.html">${1:<wbr />name}Model.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../../templates/view-asp.html">${1:<wbr />name}View.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../../templates/interface-asp.html">interface.asp</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="MEntry">
                <div class="MGroup">
                    <a href="javascript:ToggleMenu('MGroupContent18')">Miscellaneous</a>
                    <div class="MGroupContent" id="MGroupContent18">
                        <div class="MEntry">
                            <div class="MGroup">
                                <a href="javascript:ToggleMenu('MGroupContent15')">App</a>
                                <div class="MGroupContent" id="MGroupContent15">
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../../../../app/controllers/default-asp.html">default.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MGroup">
                                            <a href="javascript:ToggleMenu('MGroupContent14')">Views</a>
                                            <div class="MGroupContent" id="MGroupContent14">
                                                <div class="MEntry">
                                                    <div class="MFile">
                                                        <a href="../../../../app/views/anotherView-asp.html">anotherView.asp</a>
                                                    </div>
                                                </div>
                                                <div class="MEntry">
                                                    <div class="MFile">
                                                        <a href="../../../../app/views/defaultView-asp.html">defaultView.asp</a>
                                                    </div>
                                                </div>
                                                <div class="MEntry">
                                                    <div class="MFile">
                                                        <a href="../../../../app/views/genericView-asp.html">genericView.asp</a>
                                                    </div>
                                                </div>
                                                <div class="MEntry">
                                                    <div class="MFile">
                                                        <a href="../../../../app/views/global-asa.html">global.asa</a>
                                                    </div>
                                                </div>
                                                <div class="MEntry">
                                                    <div class="MFile">
                                                        <a href="../../../../app/views/inspect-asp.html">inspect.asp</a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../../../../default-asp.html">default.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../../../../global-asa.html">global.asa</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MGroup">
                                <a href="javascript:ToggleMenu('MGroupContent17')">Lib</a>
                                <div class="MGroupContent" id="MGroupContent17">
                                    <div class="MEntry">
                                        <div class="MGroup">
                                            <a href="javascript:ToggleMenu('MGroupContent16')">App</a>
                                            <div class="MGroupContent" id="MGroupContent16">
                                                <div class="MEntry">
                                                    <div class="MFile">
                                                        <a href="../../app/controllers/default-asp.html">default.asp</a>
                                                    </div>
                                                </div>
                                                <div class="MEntry">
                                                    <div class="MFile">
                                                        <a href="../../app/views/inspect-asp.html">inspect.asp</a>
                                                    </div>
                                                </div>
                                                <div class="MEntry">
                                                    <div class="MFile">
                                                        <a href="../../app/models/welcomeModel-asp.html">welcomeModel.asp</a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../../application-configure-asp.html">application.<wbr />configure.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../../mvc-bootstrapper-asp.html">mvc.<wbr />bootstrapper.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../../sessions-finalize-asp.html">sessions.<wbr />finalize.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../../sessions-initialize-asp.html">sessions.<wbr />initialize.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../../shuttle-unload-finalize-asp.html">shuttle.<wbr />unload.<wbr />finalize.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../../shuttle-unload-initialize-asp.html">shuttle.<wbr />unload.<wbr />initialize.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../../singletons-finalize-asp.html">singletons.<wbr />finalize.asp</a>
                                        </div>
                                    </div>
                                    <div class="MEntry">
                                        <div class="MFile">
                                            <a href="../../singletons-initialize-asp.html">singletons.<wbr />initialize.asp</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../../../../app/singletons-finalize-asp.html">singletons.<wbr />finalize.asp</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MFile">
                                <a href="../../../../app/singletons-initialize-asp.html">singletons.<wbr />initialize.asp</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="MEntry">
                <div class="MGroup">
                    <a href="javascript:ToggleMenu('MGroupContent19')">Index</a>
                    <div class="MGroupContent" id="MGroupContent19">
                        <div class="MEntry">
                            <div class="MIndex">
                                <a href="../../../../../index/General.html">Everything</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MIndex">
                                <a href="../../../../../index/Classes.html">Classes</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MIndex">
                                <a href="../../../../../index/Files.html">Files</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MIndex">
                                <a href="../../../../../index/Functions.html">Functions</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MIndex">
                                <a href="../../../../../index/Properties.html">Properties</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MIndex">
                                <a href="../../../../../index/Interfaces.html">Interfaces</a>
                            </div>
                        </div>
                        <div class="MEntry">
                            <div class="MIndex">
                                <a href="../../../../../index/DatabaseTables.html">Database Tables</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div><script type="text/javascript">
//<![CDATA[
            <!--
            var searchPanel = new SearchPanel("searchPanel", "HTML", "../../../../../search");
            -->
            //]]>
            </script>
            <div id="MSearchPanel" class="MSearchPanelInactive">
                <input type="text" id="MSearchField" value="Search" onfocus="searchPanel.OnSearchFieldFocus(true)" onblur="searchPanel.OnSearchFieldFocus(false)" onkeyup="searchPanel.OnSearchFieldChange()" /><select id="MSearchType" onfocus="searchPanel.OnSearchTypeFocus(true)" onblur="searchPanel.OnSearchTypeFocus(false)" onchange="searchPanel.OnSearchTypeChange()">
                    <option id="MSearchEverything" selected="selected" value="General">
                        Everything
                    </option>
                    <option value="Classes">
                        Classes
                    </option>
                    <option value="DatabaseTables">
                        Database Tables
                    </option>
                    <option value="Files">
                        Files
                    </option>
                    <option value="Functions">
                        Functions
                    </option>
                    <option value="Interfaces">
                        Interfaces
                    </option>
                    <option value="Properties">
                        Properties
                    </option>
                </select>
            </div><script language="JavaScript" type="text/javascript">
//<![CDATA[
            <!--
            HideAllBut([3, 4, 2], 20);// -->
            //]]>
            </script>
        </div>
        <div id="MSearchResultsWindow">
            <iframe src="" frameborder="0" name="MSearchResults" id="MSearchResults"></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id="MSearchResultsWindowClose">Close</a>
        </div><script language="JavaScript" type="text/javascript">
//<![CDATA[
        <!--
        if (browserType) {if (browserVer) {document.write("<\/div>"); }document.write("<\/div>");}// -->
        //]]>
        </script><script src="http://ajax.googleapis.com/ajax/libs/mootools/1.11/mootools-yui-compressed.js" type="text/javascript">
</script><script type="text/javascript">
//<![CDATA[
        function ToggleMenu(c){}; window.addEvent("domready", function(){ $$(".CTitle").each(function(heading, i){if(i>0)new Element("a",{"href":"#MainTopic","class":"toTop"}).setHTML("top").injectBefore(heading.getFirst());});new SmoothScroll({transition:Fx.Transitions.Cubic.easeInOut,duration:1000}); var selected = $("MSelected"); var current = (selected) ? selected.getParent().getParent() : false; $$("div.MGroupContent").setStyle("display","block"); $$("div.MGroup").each(function(div){ var link = div.getElement("a"); var block = link.getNext(); var fx = new Fx.Slide(block); if(block != current) fx.hide(); link.addEvent("click", function(){fx.toggle();}); }); });
        //]]>
        </script>
    </body>
</html>